import request from '@/utils/request'

// 资料管理列表，分页
export function getDocumentManagement(params) {
  return request({
    url: '/documentManagement/list',
    method: 'POST',
    params
  })
}

// 证件管理添加
export function addDocumentManagement(data) {
  return request({
    url: '/documentManagement/add',
    method: 'POST',
    data
  })
}

// 修改证件管理数据
export function updateDocumentManagement(data) {
  return request({
    url: '/documentManagement/update',
    method: 'POST',
    data
  })
}

// 查询单条证件管理数据
export function selectDocumentManagement(params) {
  return request({
    url: '/documentManagement/load',
    method: 'post',
    params
  })
}

// 删除证件管理数据
export function deleteDocumentManagement(data) {
  return request({
    url: '/documentManagement/delete',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
